<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="<s:url value='/'/>">智慧社区</a>
        </div>

       <%-- <form class="navbar-form navbar-left" style="margin-left: 10%;">
            <div class="form-group" >
                <input type="text" class="form-control" placeholder="搜索话题" style="width: 300px;">
            </div>
            <button type="submit" class="btn btn-default">搜索</button>
        </form>--%>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" >
            <ul class="nav navbar-nav navbar-left">
                <li class="">
                    <a href="<s:url value='/'/>">互动交流社区</a>
                </li>
                <li class="">
                    <a href="<s:url value='/pass/repair'/>" >社区报修</a>
                </li>
                <%--<li class="">
                    <a href="#">物业费缴交</a>
                </li>--%>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <shiro:guest>
                    <li class="">
                        <a href="/login">登录</a>
                    </li>
                    <li><a href="/register">注册</a></li>
                  </shiro:guest>
               <shiro:user>
                   <li class="dropdown">
                       <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                           欢迎您：<shiro:principal property="name"/>
                           <span class="caret"></span>
                       </a>
                       <ul class="dropdown-menu">
                           <li><a href="<s:url value='/pass/user'/>">个人中心</a></li>
                           <li role="separator" class="divider"></li>
                           <li><a href="<s:url value="/logout"/>">退出</a></li>
                       </ul>
                   </li>
               </shiro:user>
            </ul>


        </div><!-- /.navbar-collapse -->
    </div>
</nav>